"""
    Created By Khun on 2020/4/7
"""
__author__ = 'Khun'
from datetime import timedelta

DEBUG = False
TESTING = False
TEMPLATES_AUTO_RELOAD = True
PAGE_SIZE = 5  # 一页几条数据
SECRET_KEY = 'asfsad'
USERNAME = 'root'  # 用户名
PASSWORD = 'abc123456'  # 密码
HOST = '127.0.0.1'  # 服务器地址
PORT = 3306  # 端口号
NAME = 'demo'  # 数据库名
SQLALCHEMY_TRACK_MODIFICATIONS = False
REMEMBER_COOKIE_NAME = 'WeChat'
REMEMBER_COOKIE_DURATION = timedelta(days=7)  # cookie过期时间
SQLALCHEMY_DATABASE_URI = 'mysql://{username}:{password}@{host}:{port}/{name}'.format(
    username=USERNAME,
    password=PASSWORD,
    host=HOST,
    port=PORT,
    name=NAME
)

